ComponentOne Carousel for ASP.NET Web Forms
C1.Web.Wijmo.Controls.45 Assembly / C1.C1Schedule Namespace / MappingCollectionBase<T> Class / IndexMapping Property

In This Topic
    IndexMapping Property
    In This Topic
    Returns MappingInfo object for the BasePersistableObject.Index property. If the storage object is bound to a data source via its DataSource property, the properties of this object allow the BasePersistableObject.Index property to be bound to the appropriate field in the data source.
    Syntax
    'Declaration
     
    Public Property IndexMapping As MappingInfo
    public MappingInfo IndexMapping {get; set;}
    Remarks
    Each object derived from BasePersistableObject is identified by either Id or Index property. To allow data to be correctly restored from your data sources you should specify mapping either for the IdMapping or for the IndexMapping. It makes sense in case if you bind to your data storages of Resources, Labels, Contacts or Categories. C1Schedule saves only Ids or Indexes of these objects in AppointmentSorage. If there is no mapping for IdMapping or IndexMapping, C1Schedule won't be able to identify Appointment's properties correctly in storages initialized by your data.
    See Also